vis-dev-utils 3.0.1 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/babel-register/index.js +7 -7
- package/bin/ci-utils.js +7 -7
- package/bin/generate-examples-index.js +156 -158
- package/bin/generate-examples-index.js.map +1 -1
- package/bin/test-e2e-interop.js +89 -110
- package/bin/test-e2e-interop.js.map +1 -1
- package/dist/vis-dev-utils.cjs.js +62 -62
- package/dist/vis-dev-utils.esm.js +2 -2
- package/package.json +21 -22
package/babel-register/index.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Development utilities for the Vis family projects.
|
|
8
8
|
*
|
|
9
|
-
* @version 3.0.
|
|
10
|
-
* @date 2022-03-
|
|
9
|
+
* @version 3.0.4
|
|
10
|
+
* @date 2022-03-10T21:24:40.299Z
|
|
11
11
|
*
|
|
12
12
|
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
|
13
13
|
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
|
@@ -85,7 +85,7 @@ var _Number$MAX_SAFE_INTEGER__default = /*#__PURE__*/_interopDefaultLegacy(_Numb
|
|
|
85
85
|
var _includesInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_includesInstanceProperty);
|
|
86
86
|
var chaiFs__default = /*#__PURE__*/_interopDefaultLegacy(chaiFs);
|
|
87
87
|
|
|
88
|
-
var BABEL_IGNORE_RE = _Object$freeze__default[
|
|
88
|
+
var BABEL_IGNORE_RE = _Object$freeze__default["default"](/[\\/]node_modules[\\/](?!.*[\\/]esnext[\\/])/);
|
|
89
89
|
|
|
90
90
|
var packageJSON = JSON.parse(fs.readFileSync(findUp.sync("package.json"), "utf8"));
|
|
91
91
|
|
|
@@ -96,12 +96,12 @@ packageJSON.name;
|
|
|
96
96
|
packageJSON.version;
|
|
97
97
|
|
|
98
98
|
var _context, _context2;
|
|
99
|
-
chai.config.truncateThreshold = _Number$MAX_SAFE_INTEGER__default[
|
|
100
|
-
chai.use(chaiFs__default[
|
|
99
|
+
chai.config.truncateThreshold = _Number$MAX_SAFE_INTEGER__default["default"];
|
|
100
|
+
chai.use(chaiFs__default["default"]);
|
|
101
101
|
|
|
102
|
-
_includesInstanceProperty__default[
|
|
102
|
+
_includesInstanceProperty__default["default"](_context = ["1", "true", "y", "yes"]).call(_context, process.env["VIS_DEBUG"] || "false");
|
|
103
103
|
|
|
104
|
-
_includesInstanceProperty__default[
|
|
104
|
+
_includesInstanceProperty__default["default"](_context2 = ["1", "true", "y", "yes"]).call(_context2, process.env["VIS_TEST"] || "false");
|
|
105
105
|
|
|
106
106
|
tmpPromise.setGracefulCleanup();
|
|
107
107
|
|
package/bin/ci-utils.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Development utilities for the Vis family projects.
|
|
8
8
|
*
|
|
9
|
-
* @version 3.0.
|
|
10
|
-
* @date 2022-03-
|
|
9
|
+
* @version 3.0.4
|
|
10
|
+
* @date 2022-03-10T21:24:40.299Z
|
|
11
11
|
*
|
|
12
12
|
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
|
13
13
|
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
|
@@ -43,7 +43,7 @@ var _includesInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_inc
|
|
|
43
43
|
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_concatInstanceProperty);
|
|
44
44
|
var yargs__default = /*#__PURE__*/_interopDefaultLegacy(yargs);
|
|
45
45
|
|
|
46
|
-
yargs__default[
|
|
46
|
+
yargs__default["default"].strict(true).usage("test-e2e-interop <command> [options]").hide("version").config().help().command("install-dependencies-for [tools..]", "Install the dependencies for given tool(s). Note that this is specific to CircleCI's Debian based Docker images.", function (yargs) {
|
|
47
47
|
return yargs.positional("tools", {
|
|
48
48
|
choices: ["chromium", "cypress"],
|
|
49
49
|
demandOption: true,
|
|
@@ -53,9 +53,9 @@ yargs__default['default'].strict(true).usage("test-e2e-interop <command> [option
|
|
|
53
53
|
}, function (argv) {
|
|
54
54
|
var _context, _context2, _context3;
|
|
55
55
|
|
|
56
|
-
var dependecies = new _Set__default[
|
|
56
|
+
var dependecies = new _Set__default["default"]();
|
|
57
57
|
|
|
58
|
-
if (_includesInstanceProperty__default[
|
|
58
|
+
if (_includesInstanceProperty__default["default"](_context = argv.tools).call(_context, "chromium")) {
|
|
59
59
|
dependecies.add("libasound2");
|
|
60
60
|
dependecies.add("libgbm1");
|
|
61
61
|
dependecies.add("libgtk-3-0");
|
|
@@ -64,7 +64,7 @@ yargs__default['default'].strict(true).usage("test-e2e-interop <command> [option
|
|
|
64
64
|
dependecies.add("libxtst6");
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
if (_includesInstanceProperty__default[
|
|
67
|
+
if (_includesInstanceProperty__default["default"](_context2 = argv.tools).call(_context2, "cypress")) {
|
|
68
68
|
dependecies.add("libasound2");
|
|
69
69
|
dependecies.add("libgconf-2-4");
|
|
70
70
|
dependecies.add("libgtk-3-0");
|
|
@@ -77,7 +77,7 @@ yargs__default['default'].strict(true).usage("test-e2e-interop <command> [option
|
|
|
77
77
|
dependecies.add("xvfb");
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
child_process.spawnSync("sudo", _concatInstanceProperty__default[
|
|
80
|
+
child_process.spawnSync("sudo", _concatInstanceProperty__default["default"](_context3 = ["apt-get", "install", "-yq"]).call(_context3, _toConsumableArray__default["default"](dependecies)), {
|
|
81
81
|
stdio: "inherit"
|
|
82
82
|
});
|
|
83
83
|
}).parserConfiguration({
|